<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/2/2
  Time: 10:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>ajax请求</title>
    <script src="./js/jquery-3.6.1.js" type="text/javascript"></script>
  </head>
  <body>
    <button>ajax请求</button>
    <script type="text/javascript">
      $('button').click(function() {
        $.ajax({
          url: '/web04_war_exploded/acc',
          data:{
            name:'zhangsan'
          },
          dataType: 'json',
          success: function(data) {
            console.log(data);
          }
        })
      })
    </script>
  </body>
</html>
